package petstore.domain;

import java.io.Serializable;
import java.math.BigDecimal;

public class CartItem implements Serializable
{
    private static final long serialVersionUID = 6620528781626504362L;

    private int uid;
    private Item item;
    private int quantity;
    private BigDecimal price;

    public CartItem()
    {
    }

    public CartItem(int uid, Item item, int quantity, BigDecimal price)
    {
        this.uid = uid;
        this.item = item;
        this.quantity = quantity;
        this.price = price;
    }

    public int getUid()
    {
        return uid;
    }

    public void setUid(int uid)
    {
        this.uid = uid;
    }

    public Item getItem()
    {
        return item;
    }

    public void setItem(Item item)
    {
        this.item = item;
    }

    public int getQuantity()
    {
        return quantity;
    }

    public void setQuantity(int quantity)
    {
        this.quantity = quantity;
    }

    public BigDecimal getPrice()
    {
        return price;
    }

    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }
}
